package cn.piesat.client.constant.consist;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 项目配置文件信息存储对象
 */
@Component
public class AppProperties {

    /** 客户端Ip地址 */
    @Value("${dms.client.ip}")
    private String ip;

    /** 客户端端口 */
    @Value("${dms.client.port}")
    private String port;

    /** 算法配置文件扫描路径 */
    @Value("${dms.algorithm.scanPath}")
    private String algorithmScanPath;

    /** 任务执行文件扫描路径 */
    @Value("${dms.taskFile.scanPath}")
    private String taskFileScanPath;

    @Value("${dms.task.thread.pool.size:10}")
    private Integer taskThreadPoolSize;

    @Value("${dms.redis.service.pool.size:10}")
    private Integer redisServicePoolSize;

    /** 获取 客户端Ip地址 */
    public String getIp() {
        return ip;
    }

    /** 设置 客户端Ip地址 */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /** 获取 客户端端口 */
    public String getPort() {
        return port;
    }

    /** 设置 客户端端口 */
    public void setPort(String port) {
        this.port = port;
    }

    /** 获取 算法配置文件扫描路径 */
    public String getAlgorithmScanPath() {
        return algorithmScanPath;
    }

    /** 设置 算法配置文件扫描路径 */
    public void setAlgorithmScanPath(String algorithmScanPath) {
        this.algorithmScanPath = algorithmScanPath;
    }

    /** 获取 任务执行文件扫描路径 */
    public String getTaskFileScanPath() {
        return taskFileScanPath;
    }

    /** 设置 任务执行文件扫描路径 */
    public void setTaskFileScanPath(String taskFileScanPath) {
        this.taskFileScanPath = taskFileScanPath;
    }

    public Integer getTaskThreadPoolSize() {
        return taskThreadPoolSize;
    }

    public void setTaskThreadPoolSize(Integer taskThreadPoolSize) {
        this.taskThreadPoolSize = taskThreadPoolSize;
    }

    public Integer getRedisServicePoolSize() {
        return redisServicePoolSize;
    }

    public void setRedisServicePoolSize(Integer redisServicePoolSize) {
        this.redisServicePoolSize = redisServicePoolSize;
    }
}